<?php 

	return array (
			'name'    => 'FormUsers',
			'method'  => 'post',
			'action'  => '',
			'options' => array(),
			
			'elements' => array(
				/*
				 * ID
				 */
				array(
					'name'       => 'id',
					'required'   => true,
					'attributes' => array(
						'type'  => 'hidden',
					),
					'filters' => array(
						array('name'    => 'Int'),
					),
				),
			
				/*
				 * Username
				 */
				array(
					'name'     => 'username',
					'required' => true,
					'attributes' => array(
						'type'  => 'text',
						'class' => 'text'
					),
					'options' => array(
						'label' => 'Username',		 
					),
					'filters'  => array(
						array('name' => 'StripTags'),
						array('name' => 'StringTrim'),
					),
					'validators' => array(
						array(
							'name'    => 'StringLength',
							'options' => array(
								'encoding' => 'UTF-8',
								'min'      => 1,
								'max'      => 100,
							),
						),
					),
				),
			
				/*
				 * Email
				 */
				array(
					'name'     => 'email',
					'required' => true,
					'attributes' => array(
						'type'  => 'text',
						'class' => 'text'
					),
					'options' => array(
						'label' => 'Email',
					),
					'filters'  => array(
						array('name' => 'StripTags'),
						array('name' => 'StringTrim'),
					),
					'validators' => array(
						array(
							'name'    => 'StringLength',
							'options' => array(
								'encoding' => 'UTF-8',
								'min'      => 1,
								'max'      => 100,
							),
						),
					),
				),
				
				/*
				 * Password
				 */
				array(
					'name' => 'password',
					'required' => true,
					'attributes' => array(
							'type'  => 'password',
							'class' => 'text'
					),
					'options' => array(
						'label' => 'Password',
					),
					'filters'  => array(
						array('name' => 'StripTags'),
						array('name' => 'StringTrim'),
					),
					'validators' => array(
						array(
							'name'    => 'StringLength',
							'options' => array(
								'encoding' => 'UTF-8',
								'min'      => 1,
								'max'      => 100,
							),
						),
					),
				),
			
				/*
				 * Re-Password
				 */
				array(
					'name' => 're_password',
					'required' => true,
					'attributes' => array(
						'type'  => 'password',
						'class' => 'text'
					),
					'options' => array(
						'label' => 'Re-Password',
					),
					'filters'  => array(
						array('name' => 'StripTags'),
						array('name' => 'StringTrim'),
					),
					'validators' => array(
						array(
							'name'    => 'StringLength',
							'options' => array(
								'encoding' => 'UTF-8',
								'min'      => 1,
								'max'      => 100,
							),
						),
					),
				),
					
				/*
				 * User Groups
				 */
				array(
					'type' => 'Zend\Form\Element\Select',
					'name' => 'groups',
					'required' => true,
					'attributes' => array(
						'multiple' => 'multiple',
					),
					'options' => array(
						'label' => 'User Groups',
					),
						
				),
			
				/*
				 * Submit
				 */
				array(
					'name' => 'submit',
					'attributes' => array(
						'type'  => 'submit',
						'value' => 'Save',
						'id' => 'submitbutton',
					),
				)
			),
			
		);
	
?>